<?php if(validation_errors() != '') { ?>
<div class="alert alert-danger">
    <?php echo validation_errors(); ?>
</div>
<?php } ?>
<form role="form" method="POST">
    <div class="form-group">
        <label>Nombre</label>
        <input type="text" name="nombre" class="form-control" maxlength="100" value="<?=$proveedor['nombre']?>" autofocus>
    </div>
    <div class="form-group">
        <label>Domicilio</label>
        <input type="text" name="domicilio" class="form-control" maxlength="100" value="<?=$proveedor['domicilio']?>">
    </div>
    <div class="form-group">
        <label>Localidad</label>
        <input type="text" name="localidad" class="form-control" maxlength="100" value="<?=$proveedor['localidad']?>">
    </div>
    <div class="form-group">
        <label>Provincia</label>
        <input type="text" name="provincia" class="form-control" maxlength="100" value="<?=$proveedor['provincia']?>">
    </div>
    <div class="form-group">
        <label>Teléfono</label>
        <input type="tel" name="telefono" class="form-control" maxlength="100" value="<?=$proveedor['telefono']?>">
    </div>
    <div class="form-group">
        <label>Persona de Contacto</label>
        <input type="text" name="contacto" class="form-control" maxlength="100" value="<?=$proveedor['contacto']?>">
    </div>
    <div class="form-group">
        <label>E-mail</label>
        <input type="email" name="email" class="form-control" maxlength="100" value="<?=$proveedor['email']?>">
    </div>
    <button type="submit" class="btn btn-success">Editar</button>
</form>
<br>
<pre>
<table class="table table-bordered table-striped">
    <tr>
        <th>Nombre</th>
        <th>Apellido</th>
        <th>Fecha</th>
        <th>Descripción</th>
    </tr>
    <?php foreach($log as $l) { ?>
    <tr>
        <td><?=$l['nombre']?></td>
        <td><?=$l['apellido']?></td>
        <td><?=$l['fecha']?></td>
        <td><?=$l['texto']?></td>
    </tr>
    <?php } ?>
</table>
</pre>